package com.black.cat.jvm.instructions.constants.consts;

import com.black.cat.jvm.instructions.base.InstructionNoOperands;
import com.black.cat.jvm.rtda.Frame;

/**
 * @Author blackcat
 * @create 2021/8/13 14:25
 * @version: 1.0
 * @description:aconst_null指令把null引用推入操作数栈顶
 */
public class ACONST_NULL extends InstructionNoOperands {


    @Override
    public void execute(Frame frame) {
        //really do nothing
        frame.operandStack().pushRef(null);
    }
}
